package ioc16;

import org.springframework.beans.factory.DisposableBean;
import org.springframework.beans.factory.InitializingBean;

public class SomeBean implements InitializingBean, DisposableBean {

    public SomeBean() {
        System.out.println("SomeBean.SomeBean()");
    }

    @Override
    public void afterPropertiesSet() throws Exception {
        System.out.println("SomeBean.afterPropertiesSet()");
    }

    @Override
    public void destroy() throws Exception {
        System.out.println("SomeBean.destroy()");
    }


}
